package cc.linker.steplink.crm.service;

import cc.linker.steplink.crm.domain.Level;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface ILevelService {
    List<Map<String, Object>> listLevels(Map map);

    Boolean addLevel(Map record) throws Exception;

    int lastOrder(String orgId) throws Exception;

    Boolean delLevel(String levelId, String orgId) throws Exception;

    String getLastLevelId(String orgId) throws Exception;

    Boolean editLevel(Map record,Map oldLevel) throws Exception;

    HashMap<String, Object> getLevelInfo(String levelId, HttpServletRequest request);

    int getLastScore(String orgId) throws Exception;

    HashMap<String, Object> getPreLevelInfo(Map map);

    HashMap<String, Object> getNextLevelInfo(Map map);
}
